#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define NUM 1024    

int main()
{
    //int fd = open("bite.txt",O_WRONLY|O_CREAT|O_TRUNC, 0666);

    int fd = open("bite.txt",O_RDONLY);

    //const char* msg = "I like linux!\n"; 
    //write(fd,msg,strlen(msg));
    
    char buf[NUM] = {0};
    read(fd,buf,sizeof(buf)-1);
    printf("%s",buf);

    close(fd);

    return 0;
}
